﻿using System;
using System.Collections.Generic;
using UnityEngine;

// Token: 0x02000290 RID: 656
public class EnableWith : MonoBehaviour
{
	// Token: 0x06000E89 RID: 3721 RVA: 0x00070424 File Offset: 0x0006E624
	private void OnEnable()
	{
		foreach (GameObject gameObject in this.gameObjects)
		{
			gameObject.SetActive(true);
		}
	}

	// Token: 0x06000E8A RID: 3722 RVA: 0x00070480 File Offset: 0x0006E680
	private void OnDisable()
	{
		foreach (GameObject gameObject in this.gameObjects)
		{
			gameObject.SetActive(false);
		}
	}

	// Token: 0x040013A9 RID: 5033
	public List<GameObject> gameObjects;
}
